package seqAlignment;

public class LocalLinearGP extends LinearGapPenalty {

	public LocalLinearGP(int k) {
		super(k);
	}
	
	@Override
	public int gapPenalty(int x, int y) {
		if ((x==0)||(y==0)) {
			return 0;
		}
		return k;
	}

	@Override
	public int headPenalty(int x, int y) {
		return super.headPenalty(x, y);
	}

}
